package values;

public class Integer implements Value {

	private int value;
	
	/**
	 * Creates a new Integer with the value 'a'
	 * @param a
	 */
	
	public Integer (int a) {
		this.value = a;
	}
	
	/**
	 * Creates a new Integer with the same value as the Integer 'a'
	 * @param a
	 */
	
	public Integer (Integer a) {
		this.value = a.eval();
	}
	
	
	/**
	 * Creates a new Integer by parsing the String s.
	 * @param a
	 */
	
	public Integer (String s) {
		this.value = new java.lang.Integer(s);
	}
	
	/**
	 * @return the int value of this
	 */
	
	public int eval() {
		return this.value;
	}
	
	public String toString() {
		return "integer:" + value;
	}
}
